/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Jun Xu
 * Date：2024/3/9
 * Time: 12:55
 */



 /* //Definition for singly-linked list.
class ListNode {
    int val;
    ListNode next;
    ListNode() {}
    ListNode(int val) { this.val = val; }
    ListNode(int val, ListNode next) { this.val = val; this.next = next; }
}*/

public class homework {


    /*public ListNode middleNode(ListNode head) {
        ListNode cur = head;
        int count = 1;
        while(cur != null){
            cur = cur.next;
            count++;
        }
        int num = count / 2;
        ListNode cur1 = head;
        while(num > 0){
            cur1 = cur1.next;
            --num;
        }
        return cur1;
    }*/
}

